<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={:C('DEFAULT_CHARSET')}" />
<title>{:L('welcome')}</title>
<link rel='stylesheet' type='text/css' href='./Public/Css/style.css'>
<base target="main" />
</head>
<body id="main_top" onLoad="reload()" >
<div id="header" class="header">
	<div class="logo" style="display:none;"><!--<img src="./Public/Images/admin_logo.gif">--></div>

	<div class="nav">&nbsp;&nbsp;&nbsp;&nbsp;{:L('welcome_user')}{$Think.session.username}  <i>|</i> [{$usergroup}]  <i>|</i> [<a href="{:U('Login/logout')}" target="_top">{:L('logout')}</a>]  <i>|</i> <a href="{$site_url}" target="_blank">{:L('home_index')}</a> </div>

	<div class="topmenu">
	<!--
		<ul><?php $n=0?>
		<volist name="menuGroupList" id="tag">
		<?php if($n==0) $oneurl = U('Main/menu',array(parentid=> $tag[id]));?>
		<li><span><a href="#" onClick="sethighlight({$n}); parent.menu.location='{:U('Main/menu',array(parentid=> $tag[id]))}';parent.main.location='{:U($tag['model'].'/'.$tag['action'],$tag['data'])}';return false;">{$tag.name}</a></span></li>
		<?php $n++?>
		</volist>
		</ul>
	-->

<ul>				<li><span><a href="#" onClick="sethighlight(0); parent.menu.location='/index.php?g=Admin&m=Main&a=menu&parentid=1';parent.main.location='/index.php?g=Admin&m=Main&a=main&menuid=42';return false;">后台首页</a></span></li>
				<li><span><a href="#" onClick="sethighlight(1); parent.menu.location='/index.php?g=Admin&m=Main&a=menu&parentid=2';parent.main.location='/index.php?g=Admin&m=Config&a=index&menuid=50';return false;">系统设置</a></span></li>
				<li><span><a href="#" onClick="sethighlight(2); parent.menu.location='/index.php?g=Admin&m=Main&a=menu&parentid=4';parent.main.location='/index.php?g=Admin&m=Website&a=index&menuid=106';return false;">模块管理</a></span></li>
				<li><span><a href="#" onClick="sethighlight(3); parent.menu.location='/index.php?g=Admin&m=Main&a=menu&parentid=5';parent.main.location='/index.php?g=Admin&m=User&a=index&menuid=9';return false;">权限管理</a></span></li>
				<li><span><a href="#" onClick="sethighlight(4); parent.menu.location='/index.php?g=Admin&m=Main&a=menu&parentid=6';parent.main.location='/index.php?g=Admin&m=Createhtml&a=index&menuid=33';return false;">静态页面</a></span></li>
				<li><span><a href="#" onClick="sethighlight(5); parent.menu.location='/index.php?g=Admin&m=Main&a=menu&parentid=7';parent.main.location='/index.php?g=Admin&m=Template&a=index&menuid=60';return false;">模板管理</a></span></li>
				</ul>

	</div>
</div>
<script><?php $n=0?>
function reload(){
parent.menu.location='{$oneurl}';
}
if(self==top){
	window.top.location.href = '{:U("Login/index")}';
}
function sethighlight(n) {
	var lis = document.getElementsByTagName('span');
	for(var i = 0; i < lis.length; i++) {
		lis[i].className = '';
	}
	lis[n].className = 'current';
}
sethighlight(0);
</script>
</body>
</html>
